DataSource for Entity Framework in WPF
C1.LiveLinq.Listeners Namespace / PropertyChangeListener<T> Class / CreateDefault() Method

In This Topic
    CreateDefault() Method
    In This Topic
    Creates the default listener used by LiveLinq to listen to property change notifications in objects of type T.
    Syntax
    'Declaration
     
    Public Shared Function CreateDefault() As PropertyChangeListener(Of T)
    public static PropertyChangeListener<T> CreateDefault()

    Return Value

    The default listener handling property change notifications.
    Remarks

    For ADO.NET and XML objects (DataRow, DataRowView, XContainer), their corresponding property change notifications are used.

    For objects implementing INotifyPropertyChanged interface, that interface is used.

    If the class is neither of the above, the default listener tries to use two change notification patterns if they are present in the class:

    • events named propertyNameChanged
    • dependency properties of WPF classes

    These patterns don't have to exist in the class, it's just a last ditch attempt of the default listener to find a notification mechanism if the standard one is not found.

    See Also